import json
def write_json(file_name,data):
    with open(file_name, 'w') as json_file:
        json.dump(data, json_file)

def read_json(path):
    with open(path,'r',encoding='utf8')as fp:
        json_data = json.load(fp)
    return json_data
